﻿using SqlHelper;

namespace Service.Content
{
    public class ArticleService : Repository<Model.Content.Article>
    {
        /// <summary>
        /// 根据id批量更新
        /// </summary>
        /// <param name="userId">userId</param>
        /// <param name="ids">ids</param>
        public bool UpdateListById(int userId, string ids)
        {
            return UpdateSQL($"update tarticle set isdelete=1 where userid={userId} and articleid in ({ids})");
        }
    }
}
